#pragma once

#include"../SGD Wrappers/CSGD_Direct3D.h"
#include <vector>
#include <d3dx9.h> // RECT

class Frame
{
	RECT	hitBox;
	RECT	SourceRect;
	float	duration; //TimePerFrame
	POINT	anchorPoint;
	POINT	ShoulderPoint;

public:
	Frame(void);
	~Frame(void);

	RECT GetCollisionBox(void) const;
	RECT GetSourceRect(void) const;
	POINT GetAnchor(void) const;
	float GetDuration(void); //TimePerFrame
	POINT GetShoulderPoint(void) const;

	//Mutators -- For Loading
	void SetHitBox( int left, int top, int right, int bottom );
	void SetSourceRect(  int left, int top, int right, int bottom );
	void SetDuration( float dur );
	void SetAnchorPoint( int X, int Y);
	void SetShoulderPoint( int X, int Y);
};

